
#ifndef   __HARDWARE_H_
#define   __HARDWARE_H_

/* RA3 RA0 RA1 RA2 RA7 RA6 RC0 RB7 RB6 RB5 RB4 RB3 RB1 RB0 */

/* OUTPUTS */

#define	INPUT		1
#define  OUTPUT	0

/* pc tranciver  16F886		REF	Direction 	New  */
/* RB0	1	OUT	RC6 */
/* RB1	2	OUT	RA7 */
/* RB2	3	OUT	RA5 */
/* RB3	4	OUT	RA4 */
/* RB4	5	OUT	RB4 */
/* RB5	6	OUT	RC7 */
/* RB6	7	OUT	RB4 */
/* RB7	8	OUT	RB3 */
/* RA7	9	OUT	RB0 */
/* RA6	10	OUT	RB5 */
/* RC0	11	OUT	RA3 */
/* RA0	12	OUT	RA2 */
/* RA1	13	OUT	RA1 */
/* RA2	14	OUT	RA0 */
/*  	15	OUT	RC3 */
/* RE3	SW	IN	RE3 */
/* RC2	LED	OUT	RC2 */
/* change 		 */

#define   PIN_OUT_1			RC6	
#define   PIN_OUT_1_DIR		TRISC6

#define   PIN_OUT_2			RA7	
#define   PIN_OUT_2_DIR		TRISA7

#define   PIN_OUT_3			RA5	
#define   PIN_OUT_3_DIR		TRISA5

#define   PIN_OUT_4			RA4	
#define   PIN_OUT_4_DIR		TRISA4

#define   PIN_OUT_5			RB4	
#define   PIN_OUT_5_DIR		TRISB4

#define   PIN_OUT_6			RC7	
#define   PIN_OUT_6_DIR		TRISC7

#define   PIN_OUT_7			RB4	
#define   PIN_OUT_7_DIR		TRISB4	

#define   PIN_OUT_8			RB3	
#define   PIN_OUT_8_DIR		TRISB3	

#define   PIN_OUT_9			RB0	
#define   PIN_OUT_9_DIR		TRISB0

#define   PIN_OUT_10			RB5		
#define   PIN_OUT_10_DIR	TRISB5

#define   PIN_OUT_11			RA3	
#define   PIN_OUT_11_DIR	TRISA3

#define   PIN_OUT_12			RA2	
#define   PIN_OUT_12_DIR	TRISA2

#define   PIN_OUT_13			RA1	
#define   PIN_OUT_13_DIR	TRISA1

#define   PIN_OUT_14			RA0	
#define   PIN_OUT_14_DIR	TRISA0

/* #define   PIN_OUT_15			RC2	 */
/* #define   PIN_OUT_15_DIR	TRISC2 */


#define   LED				RC2 	
#define   LED_DIR			TRISC2 	

#define   TEST_BTN		RE3


#endif
